package cn.edu.ctbu.sbadmin.grade.domain;

import cn.edu.ctbu.sbadmin.grade.converter.GenderConverter;
import cn.edu.ctbu.sbadmin.system.domain.UserDO;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.*;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author tms
 * @email tms2003@126.com
 * @date 2018-03-04 10:26:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "student")
@ApiModel
public class StudentDO extends UserDO {
	private static final long serialVersionUID = 1L;

	@TableField(value = "s_no")
	@ExcelProperty("学号")
	private String username;
	//真名
	//@ExcelIgnore
	@ExcelProperty("班级id")
	private Integer classId;
	@ExcelProperty("姓名")
	private String name;
	@ExcelProperty(value = "性别",converter= GenderConverter.class)
	private Integer gender;

	//头像
	@ExcelIgnore
	private String avatar;
	@ExcelProperty("最后登录时间")
	private String lastTime;
	@ExcelProperty("最后登录的IP")
	private String lastIp;
	//是否被删
	@ExcelIgnore
	private Integer isDeleted = 0;
	@ExcelIgnore
	private Date gmtDelete;
	//创建时间
	@ExcelIgnore
	private Date gmtCreate;
	//修改时间
	@ExcelIgnore
	private Date gmtModified;
	//删除人的id
	@ExcelIgnore
	private Long deleteUserid;

	@TableField(exist = false)
	@ExcelProperty("班级")
	private String className;



}
